package com.ruoyi.mall.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品属性值对象 mall_value
 * 
 * @author ruoyi
 * @date 2020-05-20
 */
public class MallValue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 属性值Id */
    private Long valueId;
    /** 是否默认选中 */
    @Excel(name = "是否默认选中")
    private Long isDefault;

    public Long getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Long isDefault) {
        this.isDefault = isDefault;
    }

    /** 属性Id */
    @Excel(name = "属性Id")
    private Long propertyId;

    public Long getPropertyId() {
        return propertyId;
    }

    public void setPropertyId(Long propertyId) {
        this.propertyId = propertyId;
    }

    public void setValueName(String valueName) {
        this.valueName = valueName;
    }

    /** 属性值名称 */
    @Excel(name = "属性值名称")
    private String valueName;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;
    private MallProperty mallProperty;
    public MallProperty getMallProperty() {
        return mallProperty;
    }

    public void setMallProperty(MallProperty mallProperty) {
        this.mallProperty = mallProperty;
    }



    public void setValueId(Long valueId) 
    {
        this.valueId = valueId;
    }

    public Long getValueId() 
    {
        return valueId;
    }

    public String getValueName() 
    {
        return valueName;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("valueId", getValueId())
            .append("productId", getPropertyId())
            .append("valueName", getValueName())
            .append("sort", getSort())
            .toString();
    }
}
